package bebDialogs;

import java.awt.Color;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;

class ExercicePanel extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	JComboBox<Integer> boxes[];
	public ExercicePanel(int n) {
		
		boxes= new JComboBox[16];
		JLabel lab=new JLabel("packet "+n);
		lab.setBackground(Color.white);
		this.add(lab);
		for(int i=0;i<16;i++){
			boxes[i]=new JComboBox<>();
			
			/*
			 * ajouter des choix au combobox
			 */
			
			for(int j=0;j<Math.pow(2, Math.min(i, 10));j++){
				boxes[i].addItem(new Integer(j));
			}
			
			this.add(boxes[i]);
		}
	}
}